<!DOCTYPE xsl:stylesheet  [
        <!ENTITY nbsp   "&#160;">
        <!ENTITY copy   "&#169;">
        <!ENTITY reg    "&#174;">
        <!ENTITY trade  "&#8482;">
        <!ENTITY mdash  "&#8212;">
        <!ENTITY ldquo  "&#8220;">
        <!ENTITY rdquo  "&#8221;">
        <!ENTITY pound  "&#163;">
        <!ENTITY yen    "&#165;">
        <!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	
	<xsl:template name="news">
		<a href="/news"><div class="title">Новости </div></a>
		<center><img src="/media/news/{//page/News-list/News/@id}/title_news.jpg" width="257"  height="130" alt="Audi" OnClick="location.href='/news/#{//page/News-list/News/@id}'" style="cursor:pointer"/></center>
		<xsl:for-each select="//page/News-list/News">
				<div class="date-news"><xsl:value-of select="@created" /></div>
				<div class="title-article" OnClick="location.href='/news/#{@id}'" style="cursor:pointer"><xsl:value-of select="@title" /></div>
				<div class="text"><xsl:value-of select="announce" /></div>
		</xsl:for-each>
		<!--<a href="/news">Новостная лента</a> -->
	</xsl:template>
</xsl:stylesheet>